package be.dch.objectprops.formatter;

public class LongFormatter implements Formatter {

    @SuppressWarnings("rawtypes")
    
    public Class getFormatterClass() {
	return Long.class;
    }

    
    public Object parse(final String input) {
	if (input == null) {
	    return null;
	}
	return Long.valueOf(input);
    }

    
    public String format(final Object input) {
	final Long l = (Long) input;
	return l.toString();
    }

    
    public void parse(final String input, Object result) {
	throw new UnsupportedOperationException("Method parse(String,Object) not supporeted.");
    }
}
